﻿<cfscript>
/** 
* ORM TaskWorkload
* 
* @hint "Hibernate persistenter t_task_workload. 教学任务工作量汇总表" 
* 
*/ 

component 
	displayname="public.service.orm.senate.TaskWorkload" 
	output=false 
	persistent=true 
	selectBeforeUpdate=true dynamicInsert=true dynamicUpdate=true 
	cacheuse="Transactional" 
	entityname="TaskWorkload" 
	table="t_task_workload"
	{
	
	property type="string" name="TaskID" column="task_id" fieldtype="id" generator="assigned" hint="教学任务号";
	
	property type="string" name="TaskType" column="task_type" hint="教学任务类别";
	
	property type="numeric" name="LanguageWeight" column="lang_weight" hint="双语加权系数";
	property type="numeric" name="PracticeWeight" column="prac_weight" hint="实践加权系数";

	property type="numeric" name="Workload" column="workloads" hint="工作量";
	property type="numeric" name="TheoryWorkloads" column="theory_workloads" hint="理论工作量";
	property type="numeric" name="PracticeWorkloads" column="practice_workloads" hint="实践工作量";

	property type="string" name="TeacherWorkDivide" column="work_divide" hint="工作量分配比例";

	property name="Term" fieldtype="many-to-one" fkcolumn="term_id" cfc="Term" hint="学期";
	property name="Course" fieldtype="many-to-one" fkcolumn="cid" cfc="Course" hint="课程";	
	
}

</cfscript>